package com.blacktry.utils;

import com.blacktry.entity.model.Admin;
import org.springframework.security.core.context.SecurityContextHolder;


public class CurrentUserUtil {

    public static Admin getCurrentUser(){
        return (Admin)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }

}
